// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Message.java

package com.vandagroup.common.util;

import org.apache.struts.action.ActionForward;

public class Message
{

    protected String msg;
    protected String backUrl;
    protected ActionForward backForward;
    protected Exception exception;

    public Message(String msg)
    {
        this.msg = null;
        backUrl = null;
        backForward = null;
        exception = null;
        this.msg = msg;
    }

    public Message(String msg, Exception e)
    {
        this.msg = null;
        backUrl = null;
        backForward = null;
        exception = null;
        this.msg = msg;
        exception = e;
    }

    public Message(String msg, String backUrl)
    {
        this.msg = null;
        this.backUrl = null;
        backForward = null;
        exception = null;
        this.msg = msg;
        this.backUrl = backUrl;
    }

    public Message(String msg, String backUrl, Exception e)
    {
        this.msg = null;
        this.backUrl = null;
        backForward = null;
        exception = null;
        this.msg = msg;
        this.backUrl = backUrl;
        exception = e;
    }

    public Message(String msg, ActionForward backForward)
    {
        this.msg = null;
        backUrl = null;
        this.backForward = null;
        exception = null;
        this.msg = msg;
        this.backForward = backForward;
    }

    public Message(String msg, ActionForward backForward, Exception e)
    {
        this.msg = null;
        backUrl = null;
        this.backForward = null;
        exception = null;
        this.msg = msg;
        this.backForward = backForward;
        exception = e;
    }

    public ActionForward getBackForward()
    {
        return backForward;
    }

    public String getBackUrl()
    {
        return backUrl;
    }

    public Exception getException()
    {
        return exception;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setBackForward(ActionForward backForward)
    {
        this.backForward = backForward;
    }

    public void setBackUrl(String backUrl)
    {
        this.backUrl = backUrl;
    }

    public void setException(Exception exception)
    {
        this.exception = exception;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}
